﻿using System.ComponentModel;

namespace System.Web.Mvc.Html
{
    /// <summary>
    /// 表格的排序规则
    /// </summary>
    public enum FlexiGridSortOrder
    {
        /// <summary>
        /// 升序
        /// </summary>
        [Description("升序")]
        Asc = 0,

        /// <summary>
        /// 降序
        /// </summary>
        [Description("降序")]
        Desc
    }

    /// <summary>
    /// 文本的对齐方式
    /// </summary>
    public enum FlexiGridAlign
    {
        /// <summary>
        /// 靠左
        /// </summary>
        [Description("靠左")]
        Left = 0,

        /// <summary>
        /// 居中
        /// </summary>
        [Description("居中")]
        Center,

        /// <summary>
        /// 靠右
        /// </summary>
        [Description("靠右")]
        Right
    }

    /// <summary>
    /// 数据格式
    /// </summary>
    public enum FlexiGridDataType
    {
        /// <summary>
        /// JSON数据格式
        /// </summary>
        [Description("JSON")]
        JSON = 0,

        /// <summary>
        /// XML数据格式
        /// </summary>
        [Description("XML")]
        XML
    }

    /// <summary>
    /// 按钮类型
    /// </summary>
    public enum FlexiGridButtonType
    {
        /// <summary>
        /// 添加
        /// </summary>
        Add = 1,
        /// <summary>
        /// 修改
        /// </summary>
        edit,
        /// <summary>
        /// 删除
        /// </summary>
        delete,
        /// <summary>
        /// 检索
        /// </summary>
        query,
    }
}
